import request from '@/utils/request'

/**
 * @新增活动
 * POST /luckdraw/addLuckdrawAcyivity
 * @param {*} data
 * @returns
 */
export function addLuckdrawAcyivity(data) {
  return request({
    url: '/do?c=550101',
    method: 'post',
    data: { param: data }
  })
}

/**
 * @增加奖品
 * POST /luckdraw/addLuckdrawPrize
 * @param {*} data
 * @returns
 */
export function addLuckdrawPrize(data) {
  return request({
    url: '/do?c=550203',
    method: 'post',
    data: data
  })
}

/**
 * @新增奖品类型
 * POST /luckdraw/addTypeConfig
 * @param {*} data
 * @returns
 */
export function addTypeConfig(data) {
  return request({
    url: '/do?c=550001',
    method: 'post',
    data: data
  })
}
/**
 * @删除活动
 * POST /luckdraw/deletedLuckdrawAcyivity
 * @param {*} data
 * @returns
 */
export function deletedLuckdrawAcyivity(data) {
  return request({
    url: '/do?c=550103',
    method: 'post',
    data: data
  })
}
/**
 * @删除奖品
 * POST /luckdraw/deletedLuckdrawPrize
 * @param {*} data
 * @returns
 */
export function deletedLuckdrawPrize(data) {
  return request({
    url: '/do?c=550205',
    method: 'post',
    data: data
  })
}
/**
 * @删除奖品类型
 * POST /luckdraw/deletedTypeConfig
 * @param {*} data
 * @returns
 */
export function deletedTypeConfig(data) {
  return request({
    url: '/do?c=550003',
    method: 'post',
    data: data
  })
}
/**
 * @获取可抽奖活动
 * POST /luckdraw/getCanLuckdrawAcyivity
 * @param {*} data
 * @returns
 */
export function getCanLuckdrawAcyivity(data) {
  return request({
    url: '/do?c=550106',
    method: 'post',
    data: data
  })
}
/**
 * @获取可抽奖活动详情
 * POST /luckdraw/getLuckdrawAcyivityDetial
 * @param {*} data
 * @returns
 */
export function getLuckdrawAcyivityDetial(data) {
  return request({
    url: '/do?c=550105',
    method: 'post',
    data: data
  })
}
/**
 * @获取活动列表
 * POST /luckdraw/getLuckdrawAcyivityList
 * @param {*} data
 * @returns
 */
export function getLuckdrawAcyivityList(data) {
  return request({
    url: '/do?c=550104',
    method: 'post',
    data: data
  })
}
/**
 * @获取奖品详情
 * POST /luckdraw/getLuckdrawPrizeDetial
 * @param {*} data
 * @returns
 */
export function getLuckdrawPrizeDetial(data) {
  return request({
    url: '/do?c=550207',
    method: 'post',
    data: data
  })
}
/**
 * @获取奖品列表
 * POST /luckdraw/getLuckdrawPrizeList
 * @param {*} data
 * @returns
 */
export function getLuckdrawPrizeList(data) {
  return request({
    url: '/do?c=550206',
    method: 'post',
    data: data
  })
}
/**
 * @获取记录列表
 * POST /luckdraw/luckdrawPrizeRecodeList
 * @param {*} data
 * @returns
 */
export function luckdrawPrizeRecodeList(data) {
  return request({
    url: '/do?c=550301',
    method: 'post',
    data: data
  })
}
/**
 * @根据奖品类型奖品id获取奖品详情
 * POST /luckdraw/getPrizeDetialByType
 * @param {*} data
 * @returns
 */
export function getPrizeDetialByType(data) {
  return request({
    url: '/do?c=550202',
    method: 'post',
    data: data
  })
}
/**
 * @根据奖品类型获取奖品自定义列表
 * POST /luckdraw/getPrizeListByType
 * @param {*} data
 * @returns
 */
export function getPrizeListByType(data) {
  return request({
    url: '/do?c=550201',
    method: 'post',
    data: data
  })
}
/**
 * @获取奖品类型详情
 * POST /luckdraw/getTypeConfigDetial
 * @param {*} data
 * @returns
 */
export function getTypeConfigDetial(data) {
  return request({
    url: '/do?c=550005',
    method: 'post',
    data: data
  })
}
/**
 * @获取奖品类型列表
 * POST /luckdraw/getTypeConfigList
 * @param {*} data
 * @returns
 */
export function getTypeConfigList(data) {
  return request({
    url: '/do?c=550004',
    method: 'post',
    data: data
  })
}
/**
 * @修改活动
 * POST /luckdraw/updateLuckdrawAcyivity
 * @param {*} data
 * @returns
 */
export function updateLuckdrawAcyivity(data) {
  return request({
    url: '/do?c=550102',
    method: 'post',
    data: { param: data }
  })
}
/**
 * @修改奖品
 * POST /luckdraw/updateLuckdrawPrize
 * @param {*} data
 * @returns
 */
export function updateLuckdrawPrize(data) {
  return request({
    url: '/do?c=550204',
    method: 'post',
    data: data
  })
}
/**
 * @修改奖品类型
 * POST /luckdraw/updateTypeConfig
 * @param {*} data
 * @returns
 */
export function updateTypeConfig(data) {
  return request({
    url: '/do?c=550002',
    method: 'post',
    data: data
  })
}
// 抽奖状态修改
export function statusUpdate(data) {
  return request({
    url: '/do?c=550108',
    method: 'post',
    data: data
  })
}
